package com.eh.proxy.remote.remote.base;

import com.eh.proxy.remote.remote.model.GumballMachine;

/**
 * Created by David on 2016/5/1.
 */
public abstract class AbstractState implements State {
    protected transient GumballMachine gumballMachine;

    protected AbstractState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        System.out.println("Bad Request!");
    }

    @Override
    public void ejectQuarter() {
        System.out.println("Bad Request!");
    }

    @Override
    public boolean turnCrank() {
        return false;
    }

    @Override
    public void dispense() {
        System.out.println("Bad Request!");
    }
}
